package cn.jilian.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import cn.jilian.entity.AbstractEntity;

@Entity
@Table(name="bt_attr",uniqueConstraints={@UniqueConstraint(name="attrByFidAndNameAndRank",columnNames= {"fid","name","rank"})})
public class Attr extends AbstractEntity{
	
	public static final Integer RANK_META_ATTR=210401;
	
	public static final String RANK_META_ATTR_STR=RANK_META_ATTR.toString();
	
	public static final Long META_MODEL_ATTR=100060156955L;

	private String name;
	
	private String code;
	
	private String text;
	
	private Integer flag=1;
	
	private Date tims;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Date getTims() {
		return tims;
	}

	public void setTims(Date tims) {
		this.tims = tims;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	
}
